import Mock from 'mockjs';

// 配置 Mock 路径
require.config({
    paths: {
        mock: 'http://localhost:3000/'
    }
})

Mock.mock('/dist/user', 'get', {
    "code": 200,
    "msg": "请求成功！",
    "data|6": [{
        "id|+1": 1,
        "name": "@ctitle",
        "value|2000-5000": 1
    }]
});

Mock.mock('/dist/area', {
    "code": 200,
    "msg": "请求成功！",
    "data": {
        "money|100000000-5000000000": 0,
        "count|10000000-500000000": 0,
        "list|5": [{
            "id|+1": 1,
            "name": "@province()",
            "car|1000000-50000000": 1,
            "house|1000000-50000000": 1
        }]
    }
});

Mock.mock('/user/info', {
    "code": 200,
    "msg": "请求成功！",
    "data": [{
        text: "年龄",
        value: 25
    }, {
        text: "性别",
        value: "男"
    }, {
        text: "会员等级",
        value: "V5"
    }, {
        text: "婚姻状况",
        value: "已婚"
    }, {
        text: "忠诚度",
        value: "忠诚度高"
    }, {
        text: "昵称",
        value: "test1"
    }, {
        text: "生命周期",
        value: "成长期"
    }, {
        text: "所在身份",
        value: "广东省"
    }, {
        text: "所在城市",
        value: "广州市"
    }, {
        text: "英文昵称",
        value: "kevin"
    }, {
        text: "活跃状态",
        "value|1-5": "★"
    }, {
        text: "户籍",
        value: "广东"
    }]
});
